# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-bsnes
pkgver=0_git20220406
pkgrel=0
_commit="d770563fc3c4bd9abb522952cefb4aa923ba0b91"
pkgdesc="standalone port of Mednafen bSNES to libretro"
url="https://github.com/libretro/beetle-bsnes-libretro"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-bsnes-libretro/archive/$_commit.tar.gz
	patch-musl.patch"
builddir="$srcdir/beetle-bsnes-libretro-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 mednafen_snes_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_snes_libretro.so
}

sha512sums="
a551c5a846512498b240b8d6b7db80c866f1856429a3cebbfc7e707ea41378f5f6648cbcab794f7cc715ccba240819e1876f93292cab3c6a6e228234511048f4  libretro-beetle-bsnes-d770563fc3c4bd9abb522952cefb4aa923ba0b91.tar.gz
1324ce8101bea75316a5cfac6b21e442c2762c798b9d1ab5de22bf39adf38b154b4ffe7a79d34d9c919ec384465fd61c140765da60295c1712f93532336fdcb5  patch-musl.patch
"
